package com.rtx.edi.model.express.bo;

import com.rtx.api.annotation.RtxSTDRequest;
import com.rtx.edi.model.api.bo.ApiMappingInfoBo;
import com.rtx.edi.model.express.po.PlExpressApi;
import com.rtx.edi.model.express.po.PlExpressApiConfig;
import com.rtx.edi.model.express.po.PlExpressResult;

@RtxSTDRequest(name = "wms快递接口请求报文")
public class ExpressBO {
	
	private Boolean zdflag;//是否子母件标记
	private String callCreateOrderAPIResult;//ok为成功
	private String callCreateOrderAPIData;
	private String bagAddrMark;
	private String msg;//程序处理快递单号异常信息
	private String skipFlag;//
	private String wmwsheid;//
	private String dpopondefault08;

	/**
	 * edi配置
	 */
	private ApiMappingInfoBo ediConfig;
	
	/**
	 *	获取快递单号任务 
	 */
	private PlExpressApi expressTask; 
	/**
	 * 	获取快递单号接口配置信息
	 */
	private PlExpressApiConfig expressConfig;
	
	
	public String getDpopondefault08() {
		return dpopondefault08;
	}
	public void setDpopondefault08(String dpopondefault08) {
		this.dpopondefault08 = dpopondefault08;
	}
	/**
	 * 	获取快递单号结果
	 */
	private PlExpressResult expressResult;
	
	public ApiMappingInfoBo getEdiConfig() {
		return ediConfig;
	}
	public void setEdiConfig(ApiMappingInfoBo ediConfig) {
		this.ediConfig = ediConfig;
	}
	public String getWmwsheid() {
		return wmwsheid;
	}
	public void setWmwsheid(String wmwsheid) {
		this.wmwsheid = wmwsheid;
	}
	public String getSkipFlag() {
		return skipFlag;
	}
	public void setSkipFlag(String skipFlag) {
		this.skipFlag = skipFlag;
	}
	public PlExpressApi getExpressTask() {
		return expressTask;
	}
	public void setExpressTask(PlExpressApi expressTask) {
		this.expressTask = expressTask;
	}
	public PlExpressApiConfig getExpressConfig() {
		return expressConfig;
	}
	public void setExpressConfig(PlExpressApiConfig expressConfig) {
		this.expressConfig = expressConfig;
	}
	public Boolean getZdflag() {
		return zdflag;
	}
	public void setZdflag(Boolean zdflag) {
		this.zdflag = zdflag;
	}
	public String getCallCreateOrderAPIResult() {
		return callCreateOrderAPIResult;
	}
	public void setCallCreateOrderAPIResult(String callCreateOrderAPIResult) {
		this.callCreateOrderAPIResult = callCreateOrderAPIResult;
	}
	public String getCallCreateOrderAPIData() {
		return callCreateOrderAPIData;
	}
	public void setCallCreateOrderAPIData(String callCreateOrderAPIData) {
		this.callCreateOrderAPIData = callCreateOrderAPIData;
	}
	public PlExpressResult getExpressResultFillSendAndReceiver() {
		if(null == expressResult) {
			expressResult = new PlExpressResult();
			expressResult.setExternorderkey(expressTask.getExternorderkey());
			expressResult.setOrderkey(expressTask.getOrderkey());
			expressResult.setExpressapi(expressConfig.getExpressapi());
			expressResult.setOrderkey(expressTask.getOrderkey());
			
			expressResult.setRtxreceiverAddress(expressTask.getReceiverAddress());
			expressResult.setRtxreceiverCity(expressTask.getReceiverCity());
			expressResult.setRtxreceiverCompanyName(expressTask.getReceiverCompanyName());
			expressResult.setRtxreceiverCounty(expressTask.getReceiverCounty());
			expressResult.setRtxreceiverMobile(expressTask.getReceiverMobile());
			expressResult.setRtxreceiverName(expressTask.getReceiverName());
			expressResult.setRtxreceiverPhone(expressTask.getReceiverPhone());
			expressResult.setRtxreceiverProvince(expressTask.getReceiverProvince());
			expressResult.setRtxreceiverTown(expressTask.getReceiverTown());
			
			expressResult.setRtxsendAddress(expressTask.getSendAddress());
			expressResult.setRtxsendCity(expressTask.getSendCity());
			expressResult.setRtxsendCompanyName(expressTask.getSendCompanyName());
			expressResult.setRtxsendCounty(expressTask.getSendCounty());
			expressResult.setRtxsendMobile(expressTask.getSendMobile());
			expressResult.setRtxsendName(expressTask.getSendName());
			expressResult.setRtxsendPhone(expressTask.getSendPhone());
			expressResult.setRtxsendProvince(expressTask.getSendProvince());
			expressResult.setRtxsendTown(expressTask.getSendTown());
		}
		return expressResult;
	}
	
	public PlExpressResult getExpressResult() {
		return expressResult;
	}
	public void setExpressResult(PlExpressResult expressResult) {
		this.expressResult = expressResult;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getBagAddrMark() {
		return bagAddrMark;
	}
	public void setBagAddrMark(String bagAddrMark) {
		this.bagAddrMark = bagAddrMark;
	}
	
}
